package com.chen.dao;

import com.chen.entity.Test;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface TestDao {

    @Select("select * from test")
    public List<Test> listTest();

    @Insert("insert into test (id,name) values(#{id},#{name})")
    public int insert(Test test);
}
